<div style="width: 800px; margin: 0 auto; padding: 0;">
    <h2 style="text-align: center; color: #333; text-align: center;color: #333;margin: 0;padding: 0;">【<?php echo $city; ?>】项目周报</h2>
    <div style="text-align: center; margin-bottom: 10px; color: #666;">
        <p>统计周期：<?php echo $start_date; ?> 至 <?php echo $end_date; ?></p>
    </div>

    <div style="margin-bottom: 10px; padding: 15px; border: 1px solid #ddd; border-radius: 5px;">
        <h3 style="color: #333; margin: 15px 0 5px;">任务类型</h3>
        <table style="width: 100%; border-collapse: collapse;">
            <tr>
                <th style="padding: 8px; border: 1px solid #ddd; background-color: #f0f0f0;">类型</th>
                <th style="padding: 8px; border: 1px solid #ddd; background-color: #f0f0f0;">数量</th>
            </tr>
            <?php foreach($rows as $opitem):?>
            <tr>
                <td style="padding: 8px; border: 1px solid #ddd;"><?php echo $opitem['rwlb'];?></td>
                <td style="padding: 8px; border: 1px solid #ddd; text-align: center;"><?php echo $opitem['total'];?></td>
            </tr>
            <?php endforeach;?>
        </table>
    </div>
</div>